package com.gzz.demo.multithread.thread;

public class ChildThread extends Thread {  
    private Thread parent;  
  
    public ChildThread(Thread parent) {  
        super();  
        this.parent = parent;  
    }  
  
    public void run() {  
        try {  
            Thread.sleep(5000);  
            System.out.println("parent.isAlive()" + parent.isAlive());  
        } catch (InterruptedException e) {  
            e.printStackTrace();  
        }  
    }  

}
